<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="chtml" uri="http://www.szhelper.com/jsp/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>修改密码</title>
<chtml:link rel="stylesheet" href="/layout/css/window.css" />
<script type="text/javascript">
	function checkform() {
		if (document.getElementById("oldPwd").value == "") {
			alert("旧密码不能为空，请您输入旧密码！");
			return false;
		}
		if (document.getElementById("newPwd").value == "") {
			alert("新密码不能为空，请您输入新密码！");
			return false;
		}
		if (document.getElementById("newPwd").value != document
				.getElementById("confirmPwd").value) {
			alert("两次输入的密码不一致，请重新输入！");
			return false;
		}
	}
</script>
</head>
<body>
	<chtml:window title="修改登录密码">
		<form action="<chtml:path path="/" />password" name="changePwdForm"
			method="post" onsubmit="javascript:return checkform();">
			<table class="data_table">
				<tr>
					<td width="100" class="data_tab_tdr" nowrap="nowrap" align="right">原密码：</td>
					<td class="data_tab_tdl" nowrap="nowrap"><input id="oldPwd"
						name="oldPwd" value="" type="password" size="20" maxlength="20" />
					</td>
				</tr>
				<tr>
					<td width="100" class="data_tab_tdr" nowrap="nowrap" align="right">新密码：</td>
					<td class="data_tab_tdl" nowrap="nowrap"><input id="newPwd"
						name="newPwd" value="" type="password" size="20" maxlength="20" />
					</td>

				</tr>
				<tr>
					<td width="100" class="data_tab_tdr" nowrap="nowrap" align="right">确认密码：</td>
					<td class="data_tab_tdl" nowrap="nowrap"><input
						id="confirmPwd" name="confirmPwd" value="" type="password"
						size="20" maxlength="20" />
					</td>

				</tr>
				<tr>
					<td height="40" colspan=2 align="center" class="data_tab_td">
						<button name="modify" type="submit">·修改·</button>
						<button name="modify" type="reset">·重置·</button></td>
				</tr>
			</table>
		</form>
	</chtml:window>
</body>
</html>
